import { createStore } from 'vuex'

 const store = createStore({
  state: {
    dataList:[]
  },
  mutations:{
    changeDom(state,payload){
      // console.log(payload);
      state.dataList = payload
    }

  },
  actions:{

  },
  getters:{//计算想要的数据格式
    dataList(state){
      return state.dataList
    }

  }
})

export default store
